<div class="layui-form" lay-filter="LAY-home-adPosition-listform" id="LAY-home-adPosition-listform"
     style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">位置名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="position_name" value="{{ d.params.position_name }}" lay-verify="required"
                       placeholder="请输入名称" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">关联页面</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" id="pageName" value="{{ d.params.pageName }}" class="layui-input" readonly/>
                <input type="hidden" id="pageId" name="page_id" value="{{ d.params.page_id }}" class="layui-input"/>
            </script>

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">尺寸建议</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <textarea name="position_style" style="width: 400px; height: 150px;" autocomplete="off"
                          class="layui-textarea">
            {{ d.params.position_style }}
          </textarea>
            </script>
        </div>
    </div>
    <script type="text/html" template>
        <input type="hidden" name="position_id" value="{{ d.params.position_id || '' }}">
    </script>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-home-adPosition-listform-submit" value="保存"
                   class="layui-btn">
        </div>
    </div>
</div>
<script>
    layui.use('common', (common) => {
        common.formDropdownEditor(
            window.globalConfig.url_page_list,
            'pageName',
            'pageId',
            'pageName',
            'page_id'
        )
    })
</script>